#ifndef TOOL_H
#define TOOL_H
#include <iostream>
#include "stdio.h"
#include <vector>

#define REV_NULL 0
#define REV_TIOMEOUT -1
#define REV_ERROR -2
#define REV_TRUE -3
#define RECV_DONE -4

uint16_t CRC16_Table(std::vector<uint8_t> &dataBuf);
float DATA_Trans(uint8_t Data_1, uint8_t Data_2, uint8_t Data_3, uint8_t Data_4);
long long timestamp(uint8_t Data_1, uint8_t Data_2, uint8_t Data_3, uint8_t Data_4);

#endif